package com.hos.db.entity.ill;

import com.hos.utile.JsonUtile;
import com.hos.utile.StringUtile;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**废弃
 * Created by guom on 2018/10/29.
 */
public class IllEntity {
    private String illId;//病例id
    private String patId;//患者id
    private String docId;//医生id
    private String illMsg;// 病例详情
    private String illTitle;// 病例标题

    public String illImgs;// 图片
    private String illOwner; // 病例所有者
    private String illOwnerId;// 病例所有者id
    private Date illCreateTime;// 病例创建时间
    private Date illUpdateTime;// 病例修改时间
    public List<String> imgs;// 图片

    public String getIllTitle() {
        return illTitle;
    }

    public void setIllTitle(String illTitle) {
        this.illTitle = illTitle;
    }

    public String getIllId() {
        return illId;
    }

    public void setIllId(String illId) {
        this.illId = illId;
    }

    public String getPatId() {
        return patId;
    }

    public void setPatId(String patId) {
        this.patId = patId;
    }

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public String getIllMsg() {
        return illMsg;
    }

    public void setIllMsg(String illMsg) {
        this.illMsg = illMsg;
    }

    public String getIllOwner() {
        return illOwner;
    }

    public void setIllOwner(String illOwner) {
        this.illOwner = illOwner;
    }

    public String getIllOwnerId() {
        return illOwnerId;
    }

    public void setIllOwnerId(String illOwnerId) {
        this.illOwnerId = illOwnerId;
    }

    public Date getIllCreateTime() {
        return illCreateTime;
    }

    public void setIllCreateTime(Date illCreateTime) {
        this.illCreateTime = illCreateTime;
    }

    public Date getIllUpdateTime() {
        return illUpdateTime;
    }

    public void setIllUpdateTime(Date illUpdateTime) {
        this.illUpdateTime = illUpdateTime;
    }


    public String getIllImgs() {
        return illImgs;
    }

    public void setIllImgs(String illImgs) {
        this.illImgs = illImgs;
    }

    public List<String> getImgs() {
        if (StringUtile.isEmpty(illImgs)) {
            return new ArrayList();
        }
        imgs = (List<String>) JsonUtile.json2Obj(illImgs, List.class, String.class);
        return imgs;
    }

    public void setImgs(List<String> imgs) {
        this.imgs = imgs;
    }
}
